package com.czd.base.model;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * Author: Jerry.hu
 * Create: Jerry.hu (14-8-27 8:58)
 * Description:
 * To change this template use File | Settings | File Templates.
 */
public class DyResult {
	private boolean suss;
	private String message;
	private HashMap<String,Object> params = new HashMap<String, Object>();
	/**
	 * 获得结果状态 (true:成功 false:失败)
	 * @return boolean (true:成功 false:失败)
	 */
	public boolean isSuss() {
		return suss;
	}
	/**
	 * 设置结果状态 (true:成功 false:失败)
	 * @param suss boolean
	 */
	public void setSuss(boolean suss) {
		this.suss = suss;
	}
	/**
	 * 获得结果提示信息
	 * @return 结果提示信息
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * 设置结果提示信息
	 * @param message String
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	public HashMap<String,Object> getParams() {
		return params;
	}
	public void setParams(HashMap<String,Object> params) {
		this.params = params;
	}
	public DyResult(){
		this.suss = true;
	}
	/**
	 * 根据结果与提示信息构造函数
	 * @param suss 结果状态 (true:成功 false:失败)
	 * @param message 提示信息
	 */
	public DyResult(boolean suss,String message){
		this.suss = suss;
		this.message = message;
	}
	@Override
	public String toString() {
		return "DyResult [suss=" + suss + ", message=" + message
				+ ", params=" + params + "]";
	}

}
